package Controller;

// This program consists of three files: SlidePuzzle.java (Controller), SlidePuzzleGUI.java (View) and SlidePuzzleModel.java (Model/Logic)
import View.SlidePuzzleGUI;
import javax.swing.JFrame;

/**
 * 
 * @author Simon Marshall - jc209673
 */
public class SlidePuzzle {

    /**
     * 
     * @param args - Controller class file for Slide Puzzle Assignment. Main that sets the window name, closes on exit, sets the content pane, finalizes layout, makes window visible and stop window from being resized.
     */
    public static void main(String[] args) { // main start

        JFrame window = new JFrame("Slide Puzzle V1");
        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        window.setContentPane(new SlidePuzzleGUI());

        window.pack();  // finalize layout
        window.setVisible(true);  // make window visible, using window.show() will do the same for a depreciated function
        window.setResizable(false);
    } // end of main
} // end of class

